//
//  MemberVModel.m
//  quxiangtao
//
//  Created by HHuajiang on 2018/11/15.
//  Copyright © 2018 shanhaijin. All rights reserved.
//

#import "MemberVModel.h"

@implementation MemberVModel
+ (void)memberVModelWithSuccess:(HttpRequestSuccess)successBlock Fail:(HttpRequestFailed)failblock {
    [PPNetworkHelper POST:@"user/vip/viprights" parameters:nil success:^(id responseObject) {
        if ([responseObject[@"code"] intValue] == 1) {
            NSArray *array = [MemberVModel mj_objectArrayWithKeyValuesArray:responseObject[@"data"]];
            successBlock(array);
        } else {
            [[KYAlertView sharedInstance] showAlertViewWithMessage:responseObject[@"msg"]];
        }
    } failure:^(NSError *error) {
        
    }];
    
}
@end
